package com.wm.wmim.common.constant;

/**
 * @author weiming
 * @date 2024/8/27 21:24
 * @description
 */
public class RpcCommonConstant {

    private RpcCommonConstant(){}

    public static final String CODE_SUCCESS = "000000";
    public static final String MSG_SUCCESS = "操作成功";

    public static final String CODE_ERR_UNKNOW = "999999";
    public static final String MSG_ERR_UNKNOW = "系统繁忙，请稍后再试";

    public static final String CODE_ERR_PARAM = "999998";
    public static final String MSG_ERR_PARAM = "参数验证失败";

    public static final String CODE_ERR_RESOURCE_NOTFOUND = "999997";
    public static final String MSG_ERR_RESOURCE_NOTFOUND = "请求数据不存在";

    public static final String CODE_ERR_TRANSACTION = "999996";
    public static final String MSG_ERR_TRANSACTION = "系统超时，请联系客服";

    public static final String CODE_ERR_METHOD_NOT_IMPLEMENT = "999995";
    public static final String MSG_ERR_METHOD_NOT_IMPLEMENT = "该RPC方法暂未实现";

    /**
     * 如果请求有携带唯一标识(如订单号，请求流水号)，则可以判断是否重复请求，为了保证幂等，请把请求结果原样返回
     */
    public static final String CODE_REPEATED_REQUEST = "999994";
    public static final String MSG_REPEATED_REQUEST = "重复请求";

    public static final String CODE_ERR_BREAKER = "999993";
    public static final String MSG_ERR_BREAKER = "请求被熔断,服务降级";
}
